gtk_widget_reposition_after is called both to add new children,
and to reposition existing children. We only want to emit
accessible changes in the former case (since AT-SPI doesn't
have events for reordering).
gtk_widget_queue_compute_expand (parent);
}
- gtk_accessible_update_children (GTK_ACCESSIBLE (parent),
- GTK_ACCESSIBLE (widget),
- GTK_ACCESSIBLE_CHILD_STATE_ADDED);
+ if (prev_parent == NULL)
+ gtk_accessible_update_children (GTK_ACCESSIBLE (parent),
+ GTK_ACCESSIBLE (widget),
+ GTK_ACCESSIBLE_CHILD_STATE_ADDED);
gtk_widget_pop_verify_invariants (widget);
}